var objKit={

    cpFields:function (source, target, fieldArray) {
        if(objKit.notEmptyArray(fieldArray)){
            for(var i in fieldArray){
                target[fieldArray[i]]=source[fieldArray[i]];
            }
        }
    },

    rmFields:function (source, fieldArray) {
        if(objKit.notEmptyArray(fieldArray)){
            for(var i in fieldArray){
                source[fieldArray[i]]=null;
            }
        }
    },

    notEmptyArray:function (arr) {
        return Array.isArray(arr) && arr.length>0;
    }

}